package com.sfh.dog.http;

/** 网络请求地址 */
public class APIConfig
{
	//private static final String BASE_URL = "http://192.168.1.12:8080/Dog.php/";
	private static final String BASE_URL = "http://115.29.19.169/Dog.php/";

	/** 文件下载 */
	private static final String FILE_URL = "ComFile/download?";
	
	/** 文件下载 */
	private static final String GIFT_URL = "ComFile/downloadGift?";

	/** 文件下载 */
	public static String getFileURL(String pathID, int size)
	{
		return getBaseURL().append(FILE_URL).append("pathID=").append(pathID)
				.append("&size=").append(size).toString();
	}
	
	/** 礼物文件下载 */
	public static String getGiftURL(String pathID)
	{
		return getBaseURL().append(GIFT_URL).append("pathID=").append(pathID)
				.toString();
	}
	/** 请求地址 */
	public static StringBuffer getBaseURL()
	{
		return new StringBuffer(BASE_URL);
	}
}
